<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">   
    
    <style>
          #dialog{
            font-family: verdana;
            font-weight: bold;
            font-size: 12px;
        }
       
    </style>
            <p:dialog id="dialog" header="Login" widgetVar="loginDialog" resizable="false" draggable="false" >  
                <h:form>    
                    <h:panelGrid id="panel" columns="2" >
                        <h:outputLabel for="username" value="Email:" />  
                        <p:inputText size="40" value="#{loginBean.username}"   
                                     id="username" required="true" label="usuario" />  

                        <h:outputLabel for="password" value="Senha:" />  
                        <h:inputSecret value="#{loginBean.password}"   
                                       id="password" required="true" size="25" label="senha" />  
                        <f:facet name="footer">  
                            <p:commandButton style="float: right;" id="loginButton" value="Login" update=":growl,:menu"   
                                             actionListener="#{loginBean.confirmaLogin()}"   
                                             oncomplete="handleLoginRequest(xhr, status, args)"/>  
                              <p:commandLink style="margin:20px 5px 5px 20px; float: left; width: 200px; height: 20px"  id="loginButtonForgot" value="Esqueci Minha Senha" onclick="esqueceuSenhaDialog.show()" oncomplete="loginDialog.hide()"/>
                        </f:facet>  
                    </h:panelGrid>  
                    Novo no site? Faça o seu cadastro 
                    <p:commandLink id="NewCadastroDialog" type="link" value="Aqui" onclick="cadastroDialog.show(),loginDialog.hide()" />
                   
                   
                </h:form>  
            </p:dialog>  

</html>
